package com.ruan.dao;

import com.ruan.entity.Cart;
import com.ruan.query.CartQuery;
import com.ruan.vo.CartVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName:CartMapper
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/2 19:42
 **/
@Repository
public interface CartMapper {
    int addCart(Cart cart);

    List<CartVo> getCartList(CartQuery cartQuery);

    int deleteCart(Integer id);

    int deleteCartByIds(@Param("ids") Integer[] ids);

    int editCart(Cart cart);

    void deleteCartByUserId(Integer id);

    void deleteCartByUserIds(@Param("ids") Integer[] ids);
}
